package com.jic.market.api.after;

import com.jic.common.base.vo.RestResult;
import com.jic.market.request.rest.coupon.CouponStatusRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * description: CouponApi
 * date: 2020/4/29 17:33
 * author: wangys
 * version: 1.0
 */
@Api(value = "营销中心优惠券-提供内部调用-feign", tags = "营销中心优惠券-提供内部调用-feign")
@FeignClient(name = "jic-market", path = "/api/coupon")
public interface CouponApi {
    @PostMapping("/update-status-couponCodes")
    @ApiOperation(value = "更新优惠券状态-使用/退回")
    RestResult<Boolean> updateStatusByCouponCodes(@RequestBody CouponStatusRequest couponStatusRequest);

    @PostMapping("/queryMyCouponsCount")
    @ApiOperation(value = "查询我的优惠券数量")
    RestResult<Integer> queryMyCouponsCount(@RequestBody Long memberId);

}
